package org.example.service;

import org.example.pojo.PageResult;
import org.example.pojo.Student;
import org.example.pojo.StudentQueryParm;

import java.util.List;

public interface StudentService {
    /**
     * 分页查询
     */
    public PageResult<Student> findByPage(StudentQueryParm studentQueryParm);

    /**
     * 删除学员
     * @param ids
     */
    public void deleteByIds(List<Integer> ids);

    /**
     * 添加学员
     * @param student
     */
    void save(Student student);

    /**
     *根据id查询
     * @param id
     * @return
     */
    Student findById(Integer id);

    /**
     * 更改员工
     * @param student
     */
    void update(Student student);


    /**
     * 违纪处理
     * @param id
     * @param score
     */
    void updateViolation(Integer id, Short score);
}
